package client.domain.ui.eastPanel;

import static client.domain.SandboxMainKeys.EAST_PANEL_WIDTH;
import com.google.gwt.user.client.ui.Label;
import com.gwtext.client.core.Margins;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.layout.FitLayout;
import com.gwtext.client.widgets.layout.VerticalLayout;

/**
 * User: nbarrios
 * Date: Nov 9, 2009
 */
public class EastPanel extends Panel{

	private BorderLayoutData eastData;

	public EastPanel() {

		this.setTitle("East Side");
		this.setCollapsible(true);
		this.setWidth(EAST_PANEL_WIDTH);
		this.setLayout(new FitLayout());
		this.setLayout(new VerticalLayout());
		this.add(new Label("east!"));

		eastData = new BorderLayoutData(RegionPosition.EAST);
		eastData.setSplit(true);
		eastData.setMinSize(175);
		eastData.setMaxSize(400);
		eastData.setMargins(new Margins(0, 0, 5, 0));

	}

	//  Getters & Setters
	public BorderLayoutData getEastData() {
		return eastData;
	}

	public void setEastData(BorderLayoutData eastData) {
		this.eastData = eastData;
	}
}
